#include <iostream>
#include <Windows.h>
#define gtd (char)218;
#define gtc (char)191;
#define gdd (char)192;
#define gdc (char)217;
#define Tt (char)194;
#define Td (char)193;
#define c (char)197;
#define docd (char)195;
#define docc (char)180;
#define dung (char)179;
#define nam (char)196;
using namespace std;
void gotoxy(int x,int y);
int main() {
	int so,i;
	for(i=1;i<=25;i++) {
			so=i;
			gotoxy(2*i+1,1); cout<<so;
		}
	for(i=1;i<=25;i++) {
			so=i;
			gotoxy(1,2*i+1); cout<<so;
			cout<<"\n";
		}
	gotoxy(2,2); cout<<gtd;
	gotoxy(52,2); cout<<gtc;
	gotoxy(2,52); cout<<gdd;
	gotoxy(52,52); cout<<gdc;
	for(int i=1;i<25;i++)
		{
			gotoxy(2*i+2,2); cout<<Tt;
			gotoxy(2*i+2,52); cout<<Td;
			gotoxy(2,2*i+2); cout<<docd; cout<<"\n";
			gotoxy(52,2*i+2); cout<<docc; cout<<"\n";
			for(int j=1;j<25;j++) {
					gotoxy(2*j+2,2*i+2);
					cout<<c;
				}
		}
	for(int i=1;i<=26;i++)
		{
				for(int j=1;j<=25;j++) {
				gotoxy(2*j+1,2*i); cout<<nam;
			}
		}
	for( int i=1;i<=26;i++)
		{
				for(int j=1;j<=25;j++) {
				gotoxy(2*i,2*j+1); cout<<dung; cout<<"\n";
			}
			
		}
	gotoxy(3,3); cout<<"x";
	gotoxy(2,60);
	return 0;
}
void gotoxy(int x, int y){
	COORD toado;
	toado.X = x;
	toado.Y = y;
	SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),toado);
}